<template>
    <div>
        <h1>测试 $forceUpdate 有slot传值时，父组件会触发子组件的钩子函数</h1>
        <slot></slot>
    </div>
</template>

<script>
export default {
    created() {
        console.log("ForceUpdate-c-s created");
    },
    beforeMount() {
        console.log("ForceUpdate-c-s beforeMount");
    },
    mounted() {
        console.log("ForceUpdate-c-s mounted");
    },
    beforeUpdate() {
        console.log("ForceUpdate-c-s beforeUpdate");
    },
    updated() {
        console.log("ForceUpdate-c-s updated");
    },
    beforeDestroy() {
        console.log("ForceUpdate-c-sbeforeDestroy");
    },
    destroyed() {
        console.log("ForceUpdate-c-s destroyed");
    },
}
</script>

<style lang="scss" scoped>

</style>